<?php
/* @var $this MeetgiveController */


?>

	<tr>
		<td class="pl15">
			<?php echo CHtml::checkBox('id[]','',array('class'=>'chk','onclick'=>'CheckList("ids[]","id[]")','value'=>$data->zcr_id))?>
			<span><?php echo CHtml::encode(mb_substr($data->zcr_title,0,16,'utf8'))?></span>
		</td>
		<td width="20%"><?php echo CHtml::link(mb_substr($data->company->zc_name,0,16,'utf8'),$data->company->domain,array('class'=>'c_06c'))?></a></td>
		<td width="20%">
			<?php if($data->zcr_start_time>time()){
						echo "<span>未开始</span>";
					}elseif($data->zcr_end_time<time()){
						echo '<span class="c_999">已结束</span>';
					}else{
						if($data->zcr_status==1){
							echo '<span class="c_f60">正在进行</span>';
						}elseif($data->zcr_status==2){
							echo '<span class="c_999">已关闭</span>';
						}
					}
			 ?>
		</td>
		<td width="18%"><?php echo date('Y-m-d H:i:s',$data->zcr_start_time)?></td>
		<td class="operate" width="15%">
			<?php echo CHtml::link(Yii::t('glo','View'),'javascript:',array('class'=>'view c_06c'))?>
			<div class="box">
				<div class="view_box">
					<span class="man_bg view_bg"></span>
					<h3 class="c_f60">商家促销</h3>
					<ul class="meetgive_li">
						<li>单笔订单满 <strong class="c_f60">300</strong> 元 减 <strong class="c_f60">30</strong> 元</li>
						<li>单笔订单满 <strong class="c_f60">400</strong> 元 减 <strong class="c_f60">40</strong> 元</li>
						<li>单笔订单满 <strong class="c_f60">500</strong> 元 减 <strong class="c_f60">50</strong> 元</li>
						<?php if(!empty($data->zcr_condition)){ foreach((array)$data->zcr_condition as $val2 ){?>
							<li>买家消费满 <strong class="c_f60"><?php echo $val2['condition']?></strong> 元
								<?php if($data->zcr_type==1){?>
									 减 <strong class="c_f60"><?php echo $val2['value']?></strong> 元 。
								<?php }elseif($data->zcr_type==2){?>
									赠送优惠券：<strong class="c_f60"><?php echo $ticket[$val2['value']]?></strong>
								<?php }?>
							</li>
						<?php }}?>
					</ul>
				</div>
			</div>
			<?php echo CHtml::link(Yii::t('cmp','Delete'),'javascript:',array('class'=>'c_06c','onclick'=>'return art_del_confirm("/manage/meetgive/delete/id/'.$data->zcr_id.'","你确定要删除这条信息吗？")'))?> 
		</td>
	</tr>

